package com.springcloud.feignconsumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.springcloud.feignconsumer.domain.User;

@FeignClient("SERVICE-FRONTEND")
public interface HelloService {

	@RequestMapping("/hello")
	String hello();
	
	@RequestMapping(value="/hello1",  method = RequestMethod.GET)
	String hello(@RequestParam("name") String name);
	
	@RequestMapping(value ="/hello3",method =RequestMethod.POST) 
	String hello(@RequestBody User user);
}
